/* GNU Mailutils -- a suite of utilities for electronic mail
   Copyright (C) 1999, 2000, 2001, 2005, 2007 Free Software Foundation, Inc.

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 3 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General
   Public License along with this library; if not, write to the
   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301 USA */


/**
 * \file global.h
 * \author Ice and Magic
 * \date 22 Avril 2011
 * \brief Quelques fonctions globales
 *
 */

#ifndef GLOBAL_H
#define GLOBAL_H
#include "constants.h"

//!	\brief calculer le nombre de chiffres décimaux d'un entier
int	weight(__type);
//!	\brief afficher de l'aide sur la sortie standard
void	usage(void);

//! \brief Initialiser la matrice contenant les puissances
//! \see print_powers compute_F_x MyPower power_matrix
void	init_powers();

//! \brief afficher la matrice "power_matrix"
//! \see print_powers compute_F_x MyPower power_matrix
void	print_powers();

//! \brief Calculer $x^y$ en entier.
//! \see init_powers print_powers compute_F_x
__type	MyPower(__type x,__type y);

extern __type	power_matrix[__CAPACITY][__DIGITS];


#endif
